package com.example.layui.demo.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Data

public class ArticleVO  {

    private Integer id;
    private String title;
    private Date created;
    private String categories;
    private String tags;
    private String city;
    private String sex;
    private Integer page;
    private Integer limit;
    private Integer start;

    public  ArticleVO() {
        if (page == null)
            start= 0;
        else
            start= (page - 1) * limit;
    }
}
